package com.webframe.service.def;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IUserService {
	public void addUser(String login_name_,String real_name_,String email_,String password_,String org_id_, String status_)  throws Exception;
	public void addRole(String role_,String label_)  throws Exception;
	public void addRoleForUser(String user_id_,String role_id_)  throws Exception;
	public void delRoleForUser(String user_id_,String role_id_)  throws Exception;
	public void updateEnableForUser(String id_,boolean enabled_)  throws Exception;
	public void updatePwdForUser(String id_,String password_old_,String password_new_)  throws Exception;
	public void updatePwdForUserName(String name_,String password_old,String password_new) throws Exception;
	public void resetPwd(String id_,String password_new_)throws Exception;
	public List findOrgId(HttpServletRequest request,HttpServletResponse response)throws Exception;
	public void modifyUser(HttpServletRequest request,HttpServletResponse response) throws Exception ;
   /**
    * 
    * 用户 假删除
    * @param tableName
    * @param ID_
    * @throws Exception
    */
	public void doVirtualDeleteById(String tableName,String ID_)throws Exception;
	/**
	  * 
	  * 作用:假删除id下的所有子节点
	  * @param tableName
	  * @param pidColumnName
	  * @param id
	  * @throws Exception
	  */
	 public void doVirtualDeleteAllChildsByPid(String tableName,String pidColumnName,String id)throws Exception;
	 /**
		 * 
		 * 作用:假删除
		 * @throws Exception
		 */
	 public void doVirtualDelete(String sql)throws Exception;
	 /**
	  * 根据用户名获得当前用户浏览的页面的页头路径
	  * @param username
	  * @return
	  * @throws Exception
	  */
	 public String getRolesUrl(String username,String path)throws Exception; 
}
